﻿#region Usings
using System;
using System.Web.UI;
using Lib.ApplicationBlocks.Modules.Web.General;
using Lib.Utils.WebUtils;
#endregion

namespace BK.WebSite.Accounting
{
	public partial class Edit : MasterPage
	{
		#region Instance Methods
		protected void Page_Load(object sender, EventArgs e)
		{
		}

		protected void btnCancel_Click(object sender, EventArgs e)
		{
			GetDataEditControl().DoCancel();
		}

		protected void btnSave_Click(object sender, EventArgs e)
		{
			GetDataEditControl().DoSave();
		}

		private IDataEditControl GetDataEditControl()
		{
			return (IDataEditControl) ControlFinder.FindControlByInterface(typeof (IDataEditControl), editControlPlaceHolder);
		}
		#endregion
	}
}